package xin.it.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import xin.it.bean.User;
import xin.it.dto.UserReaname;
import xin.it.mapper.UserMapper;
import xin.it.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhenhui
 * @since 2023-03-18
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public List<User> listAll() {
        return userMapper.listAll();
    }
    @Override
    public List<UserReaname> listName(){
        return userMapper.listName();
    }
}
